<?php include 'include/head.php';?>
<section class="banner">
<div class="collection-head">
    <div class="container">
        <div class="column two-thirds">
        <div id="site_search">
            <input type="text" id="search_box" placeholder="Search">
        </div>

        <ul id="search_results"></ul>
        </div>
        <link rel="stylesheet" type="text/css" href="/static/css/modules/sidebar-search.css">
        <script src="/static/js/jekyll-search.min.js"></script>
        <script src="/static/js/search.js"></script>

    </div>
</div>
</section>
<!-- /.banner -->
<section class="container content">
    <div class="columns">
        <div class="column two-thirds" >
            <ol class="repo-list">
<?php foreach ($page_data['post_list'] as $row): ?>
<li class="repo-list-item">
    <h3 class="repo-list-name">
      <a href="<?php echo $row['url']; ?>"><?php echo $row['title']; ?><?php echo $row['is_top'] == 1 ? '[<font color="red">置顶</font>]' : ''; ?></a>
    </h3>
    <p class="repo-list-description">
        <?php echo $row['description']; ?>
    </p>
    <p class="repo-list-meta">
        <span class="meta-info">
          <span class="octicon octicon-calendar"></span> <?php echo $row['publish_time']; ?>
        </span>

        <span class="meta-info">
          <span class="octicon octicon-file-directory"></span>
          <a href="<?php echo $row['category_url']; ?>" title="<?php echo $row['category_name']; ?>"><?php echo $row['category_name']; ?></a>
        </span>

    </p>
</li>
<?php endforeach?>

            </ol>
        </div>
    </div>
    <div class="pagination text-align">
      <div class="btn-group">
        <?php echo $page_data['page_navigation']; ?>
      </div>
    </div>
    <!-- /pagination -->
</section>
<!-- /section.content -->
<?php include 'include/foot.php';?>